
ROOT_DEPTH = ../..

include $(ROOT_DEPTH)/config/makeinclude/platform.make

ifeq (1, $(x86_64))
  USER_DEPTH = ../../bin/x86
else
  USER_DEPTH = ../..
endif


USER_BIN = pvmain

USER_SRCS =	stdafx.cpp \
		vcs_payproxy_main.cpp \

USER_INCLDIRS = -I../h \
		-I../common/h \
		-I../util/h\
		
USER_LINK_LIBS = \
	$(USER_DEPTH)/bin/libpay_proxy.a \
	$(USER_DEPTH)/bin/libjson.a \
	$(NULL)

ifeq ($(flow_control), 1)
	USER_DEFFLAGS += -D__INFO_ENABLE_FLOW_CONTROL__
endif

USER_DEFFLAGS	+= -L../../bin
USER_LINK_DLLS = -lmysqlclient -lmemcached -lpq -lrc -liconv

USER_LINK_LIBS += \
	$(USER_DEPTH)/bin/libconnmgr.a \
	$(USER_DEPTH)/bin/libnetwork.a \
	$(USER_DEPTH)/bin/libframework.a \
	$(USER_DEPTH)/bin/libdbthread.a \
	$(USER_DEPTH)/bin/libskyurl.a \
	$(NULL)

#leak check compile option
ifeq ($(leak_check), 1)
	USER_DEFFLAGS += -DLEAK_CHECK
endif



USER_LIB_DIR = $(USER_DEPTH)/bin


include $(ROOT_DEPTH)/config/makeinclude/all_in_one.make
